#include <iostream>
#include <string>

using namespace std;

class stu1
{
private:
    /* data */
public:
    stu1(/* args */)
    {
        cout << "无参构造" << endl;
    }

    stu1(int val)
    {
        cout << "有参构造 val = " << val << endl;
    }
};

class stu2
{
private:
    string & name;

    const int id;

    stu1 stu;

public:

    stu2(string name ,int id)
        :name(name),id(id) , stu()
        {

        }
};




int main(int argc, char const *argv[])
{
    
    string str;

    stu2 s1(str ,10);

    
    return 0;
}
